<?php

//Create directory or use existing

function rmkdir($pathname)
{
$mode = 0777;
    is_dir(dirname($pathname)) || rmkdir(dirname($pathname));
    is_dir($pathname) || @mkdir($pathname);
}
?>